﻿@model AgileZen.Models.Tags

@{
    ViewBag.Title = "Tags";
}

<h2>Index</h2>

@Html.ActionLink("Add", "Add", "Tag", new { projectId = Int32.Parse(Request.QueryString["projectid"]) }, null)

<table>
    <tr>
        <td>Name</td>
        <td>Edit</td>
    </tr>
@foreach (var tag in Model.Items)
{ 
    <tr>
        <td>@Html.ActionLink("Edit", "Edit", "Tag", new { id = tag.Id, projectId = Int32.Parse(Request.QueryString["projectid"]) }, null)</td>
        <td>@Html.ActionLink(tag.Name, "Details", "Tag", new { id = tag.Id, projectId = Int32.Parse(Request.QueryString["projectid"]) }, null)</td>
        <td>@Html.ActionLink("Stories", "Stories", "Tag", new { id = tag.Id, projectId = Int32.Parse(Request.QueryString["projectid"]) }, null)</td>
        <td>@Html.ActionLink("Delete", "Delete", "Tag", new { id = tag.Id, projectId = Int32.Parse(Request.QueryString["projectid"]) }, null)</td>
    </tr>
}
</table>

